package cn.iocoder.an.module.business.controller.admin.producttablemapping.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import jakarta.validation.constraints.*;

@Schema(description = "管理后台 - 产品表名映射新增/修改 Request VO")
@Data
public class ProductTableMappingSaveReqVO {

    @Schema(description = "产品id", requiredMode = Schema.RequiredMode.REQUIRED, example = "29947")
    private String productId;

    @Schema(description = "表名", requiredMode = Schema.RequiredMode.REQUIRED, example = "王五")
    @NotEmpty(message = "表名不能为空")
    private String tableName;

    @Schema(description = "类型：daily/file", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
    @NotEmpty(message = "类型：daily/file不能为空")
    private String type;

    @Schema(description = "时间戳类型字段，需要转换为日期")
    private String timeField;

    @Schema(description = "忽略存储到数据库的字段")
    private String ignoreField;


}